Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: better Array#includes #17 #21

Closed
wants to merge 1 commit into from
Closed

feat: better Array#includes #17 #21

wants to merge 1 commit into from

Conversation

uinz
Copy link

@uinz uinz commented Jan 4, 2023

#17

@graphemecluster
Copy link
Contributor

As mentioned in #17 (comment), the type guard will cause incorrect type narrowing in the else branch. See #14 and microsoft/TypeScript#15048 for more details.

@uinz uinz closed this Jan 5, 2023
@uinz
Copy link
Author

uinz commented Jan 5, 2023

narrowing

oh, I missed some infomation.

thank you tell me about that.


but how about only apply it on ReadonlyArray?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants